{% extends "base.html" %}
{% block title %}主页{% endblock %}

{% block head %}
<script src="http://img.foshanplus.com/js/jquery.js"></script>
<link rel="stylesheet" href="http://img.foshanplus.com/css/bootstrap.min.css">
{% endblock %}

{% block content %}
{% if result%}
    <div class="well">
        <div class="alter-success">{{ result }}</div>
    </div>
{% endif %}

{% if msg%}
    <div class="well">
        <div class="alter-info">{{ msg }}</div>
    </div>
{% endif %}

<div class="well">
    <form method="post" action="/class_image" enctype="multipart/form-data" >
        <div class="row">
            <div class="col-md-12">

                <div class="input-group">
                       <label>文件</label>
                      <input type="file" name="file_data" >
                </div>
                <hr/>
            </div>
            <div class="col-md-6">
                 <div class="input-group">
                    <input type="radio"  name="method" value="garbage" checked="checked"/> <label>垃圾分类</label>

                 </div>
            </div>
            <div class="col-md-6">
                <input type="radio" name="method" value="class" /><label>图像分类 </label>

            </div>


        </div>

            <br/>
            <button class="btn btn-large btn-success" id="loading">上传</button>
    </form>
</div>





{% endblock %}